﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RadarMonitor.Alarm
{
    public static class AlarmManager
    {
        public static void Alarm(RadarMonitorSource source, RadarMonitorResultCode code, string msg, bool dingdingEn, bool smsEn,bool AudioEn)
        {
            if (dingdingEn)
            {
                DingDingRobot.Alarm(source, code, msg);
            }
            if (smsEn)
            {
                SmsAlarm.Alarm(source, code, msg);
            }
            if (AudioEn)
            {
                AudioHandler.Instance.palyAlarm(source, code, msg);
            }
        }
    }
}
